package cn.itcast.beans;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringRunner;

import cn.itcast.config.AppContext;


@RunWith(SpringRunner.class)
@ContextConfiguration(classes = {AppContext.class})
public class DemoAppConfig {
	
	//自动装配
	@Autowired
	PostService postService;
	
	@Test
	public void test() {
		System.out.println(postService);
	}
}
